/// 当前页结果集
class RolePageReponseDto {
  /// 角色ID
  final int? id;
  /// 角色名称
  final String? roleName;
  /// 关联子账号数量
  final int? accountNum;
  /// 是否内置角色：0否 1是
  final int? buildin;
  /// 数据状态（1-有效，0-无效）
  final int? status;

  RolePageReponseDto({
    this.id,
    this.roleName,
    this.accountNum,
    this.buildin,
    this.status,
  });

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    if (id != null) data['id'] = id;
    if (roleName != null) data['roleName'] = roleName;
    if (accountNum != null) data['accountNum'] = accountNum;
    if (buildin != null) data['buildin'] = buildin;
    if (status != null) data['status'] = status;
    return data;
  }

  factory RolePageReponseDto.fromJson(Map<String, dynamic> json) {
    return RolePageReponseDto(
      id: json['id'],
      roleName: json['roleName'],
      accountNum: json['accountNum'],
      buildin: json['buildin'],
      status: json['status'],
    );
  }
}